﻿using System.Windows;
using 小玩意.ViewModel;

namespace 小玩意
{
    /// <summary>
    /// S7Comm.xaml 的交互逻辑
    /// </summary>
    public partial class S7Comm : Window
    {
        private static S7Comm s7Comm;
        private  S7Comm()
        {
            InitializeComponent();
            this.DataContext = new S7CommViweModel();
        }

        public static S7Comm GetWindows()
        {
            if (s7Comm == null)
            {

                return s7Comm = new S7Comm();
            }
            else
            {
                return s7Comm;
            }
        
        }
    }
}
